package com.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bbs.dto.CommentDTO;
import com.bbs.entity.Comment;
import com.bbs.vo.CommentVO;

import java.util.List;

public interface CommentService extends IService<Comment> {
    CommentVO createComment(CommentDTO commentDTO);
    CommentVO getCommentById(Long id);
    List<CommentVO> getAllComments();
    CommentVO updateComment(Long id, CommentDTO commentDTO);
    void deleteComment(Long id);
    List<CommentVO> getCommentsByPostId(Long postId);
    List<CommentVO> getCommentsByUserId(Long userId);
} 